package com.imti.model;


import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

public class Quest implements Serializable {
    private Integer id;
    private String title;
    private String type;
    private String answerId;
    private Integer userId;
    private String createTime;
    private String name;
    private Integer rid;
    private String []contexts;
    private String []correctFlag;
    /*  问题对应答案 one to many  */
    private List<Answer> answerList;

    @Override
    public String toString() {
        return "Quest{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", type='" + type + '\'' +
                ", answerId='" + answerId + '\'' +
                ", userId=" + userId +
                ", createTime='" + createTime + '\'' +
                ", name='" + name + '\'' +
                ", rid=" + rid +
                ", contexts=" + Arrays.toString(contexts) +
                ", correctFlag=" + Arrays.toString(correctFlag) +
                ", answerList=" + answerList +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String[] getContexts() {
        return contexts;
    }

    public void setContexts(String[] contexts) {
        this.contexts = contexts;
    }

    public String[] getCorrectFlag() {
        return correctFlag;
    }

    public void setCorrectFlag(String[] correctFlag) {
        this.correctFlag = correctFlag;
    }

    public List<Answer> getAnswerList() {
        return answerList;
    }

    public void setAnswerList(List<Answer> answerList) {
        this.answerList = answerList;
    }
}
